package model;

import java.util.Random;

public abstract class PersistentObject {
	public long id;

	public PersistentObject() {
		setId(Math.abs(new Random().nextInt(100000)));
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}
	
	public abstract String toString();

}